<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="pojo"/>
<c:set value="${requestScope.roleResponse.data.list }" var="roleList" />
<jsp:useBean class="com.sys.users.pojo.AAdmins" id="adminsPojo"/>
<!DOCTYPE HTML>
<html>
	<head>
		<%@ include file="/common/include/title.jsp"%>
		<title>重置密码 - 美妆产品销售系统</title>
	</head>
	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页 
			<span class="c-gray en">&gt;</span> 系统管理 
			<span class="c-gray en">&gt;</span> 重置密码
			<a class="btn btn-success radius r"
				style="line-height: 1.6em; margin-top: 3px"
				href="javascript:location.replace(location.href);" title="刷新">
				<i class="Hui-iconfont">&#xe68f;</i>
			</a>
		</nav>
		<article class="page-container">                                     
			<form class="form form-horizontal" id="formSubmit" action="${rootPath}/back/admins/adminsUpdateSubmit.htm?operType=resetPass" method="post">
				<input type="hidden" name="id" value="${pojo.id}">
				<%-- <input type="hidden" name="operType" value="${param.operType}"> --%>
				
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span
						class="c-red">*</span>邮箱：</label>
					<div class="formControls col-xs-8 col-sm-9">
						${pojo.email}
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span
						class="c-red">*</span>密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="password" class="input-text" value="" placeholder="请输入密码"
							id="password" name="password">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span
						class="c-red">*</span>确认密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="password" class="input-text" value="" placeholder="请输入确认密码"
							id="confirmPassword" name="confirmPassword">
					</div>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
						<button 
							class="btn btn-primary radius" type="submit">
							<i class="Hui-iconfont">&#xe632;</i> 提交
						</button>
					</div>
				</div>
			</form>
		</article>
		<%@ include file="/common/include/footer.jsp" %>
		<script type="text/javascript">
			$(function(){
				$('.skin-minimal input').iCheck({
					checkboxClass: 'icheckbox-blue',
					radioClass: 'iradio-blue',
					increaseArea: '20%'
				});
				
				//表单验证
				 $("#formSubmit").validate({
					rules:{
						souPass:{
							required:true,
						},
						password:{
							required:true,
						},
						confirmPassword:{
							required:true,
							equalTo: "#password"
						}
					},
					onkeyup:false,
					focusCleanup:true,
					success:"valid", 
					   submitHandler:function(form){
						$(form).ajaxSubmit({
							type: 'post',
							success: function(data){ 
								/* 弹出框 */
								  layer.msg(data.info,{icon:1,time:3000},function()
								{
									if(data.code == '0')
									{
										var index = parent.layer.getFrameIndex(window.name);
										parent.$('.btn-refresh').click();
										parent.layer.close(index);
									}
								});
							},
							dataType:"json"
						});
					}  
				}); 
				/* 初始化百度编辑器 */
				var ue = UE.getEditor('editor');
			});
		</script>
	</body>
</html>